{WidgetActiveForm id="comment-form" enableAjaxValidation=0 model=$newComment}
    {array assign="attr" rows=6 cols=50}
    {afTextArea property='text' attr=$attr}
    {array assign="attr" value=$commentFlowId}
    {afHiddenField property='comment_flow_id' attr=$attr}
    <div class="buttons">
        {array assign="htmlOptions" class="popup-button"}
        {array assign="ajaxOptions" type="post" beforeSend='beforeSendComment' success='commentSendSuccess'}
        {assign var="submitUrl" value="/comment/create/"}
        {ajaxLink text="<span>Добавить</span>" url=$submitUrl ajaxOptions=$ajaxOptions htmlOptions=$htmlOptions}
        <img class="comment-loader" src="/images/ajax-loader.gif" />
    </div>
    <div class="clear-floating"></div>
{/WidgetActiveForm}
